<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>


<%--
  Created by IntelliJ IDEA.
  User: ZYZ
  Date: 2018/8/11
  Time: 8:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <link href="/vss/resources/bootstrap/css/bootstrap.min.css" rel="stylesheet"/>

    <link href="/vss/resources/menu/font-awesome.min.css" rel="stylesheet" media="screen">
    <link rel="stylesheet" href="/vss/resources/menu/sidebar-menu.css">
    <link rel="stylesheet" href="/vss/resources/menu/menu.css">
    <link rel="stylesheet" href="/vss/resources/js/zxf_page.css">

    <script src="/vss/resources/js/jquery-1.11.1.min.js"></script>
    <script src="/vss/resources/app/js/base.js" type="text/javascript"></script>

    <script src="/vss/resources/js/video.js" type="text/javascript"></script>
    <script src="/vss/resources/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <script src= "/vss/resources/js/zxf_page.js" type="text/javascript"></script>







</head>
<body>

<input class="ab" type ="hidden" id="test">

<form action="/vss/video/videoReported" method="GET" id="form_search">
    <input id="inp_hid_pn" type="hidden" name="pn" value="${pageInfo.getCurrentPage()}">
</form>

<div class="container-fluid">
    <div class="row clearfix">
        <div class="col-md-12 column">
        </div>
        <div class="col-md-12 column">
            <table class="table table-striped">
                <thead>
                <tr>


                    <form class="form-search" method="post" action="/vss/video/findVideo" name="form1">
                        <input class="input-medium search-query" type="text" name="name"/>
                        <input class="input-medium search-query" type="hidden" name="status" value="2"/>

                        <button type="submit" class="btn btn-success">查找视频</button>
                    </form>
                </tr>

                </tbody>
            </table>
        </div>

    </div>

</div>






<%--用户列表--%>
<div class="container-fluid">
    <div class="row clearfix">


        <table class="table table-striped" border="1">
            <thead>
            <tr>
                <th>
                    ID
                </th>
                <th>举报人</th>
                <th>举报原因</th>
                <th>提交举报时间</th>


                <th>
                    标题
                </th>
                <th>
                    简介
                <th>
                    封面
                </th>
                <th>
                    播放量
                </th>
                <th>
                    视频长度
                </th>


                <th>
                    视频类型
                </th>


                <th>
                    所属用户
                </th>
                <th>
                    上传时间
                </th>
                <th>
                    播放
                </th>
                <th>举报无效</th>
                <th>举报通过</th>


            </tr>
            </thead>
            <tbody>

            <c:forEach var="video" items="${list}">

                <tr id="${video.abuseId}" class="userClass">

                    <th>${video.abuseId}</th>
                    <th>${video.userName}</th>
                    <th>${video.reason}</th>
                    <th>${video.date}</th>
                    <th>${video.title}</th>
                    <th>${video.intro }</th>
                        <%--<th>${video.imageUrl}</th>--%>
                    <th><img src="${video.imageUrl}" height="50" width="50"></th>
                    <th>${video.views }</th>
                        <%--<th>${video.videoUrl }</th>--%>
                    <th>${video.totalTime}</th>
                    <th>${video.videoType}</th>
                    <th>${video.belongUser}</th>
                    <th>${video.uploadDate}</th>

                        <%--<th><img src="/resources/images/x.jpg"  height="50" width="50" href="http://www.baidu.com"></th>--%>
                    <th><a class="btn btn-success playVideo" name="a3" data-target=".bs-example-modal-lg" data-toggle="modal" id="${video.videoUrl}">播放</a></th>









                    <th><a class="btn btn-success invalidBtn" name="a" data-target="#updateUserDiag" data-toggle="modal" id="${video.abuseId}" value="${video.abuseId}">举报无效</a></th>



                    <th><a class="btn btn-danger deleteVideoBtn" name="b" data-target="#deleteUserById" data-toggle="modal" href="" method="post" id="${video.abuseId}">举报有效</a></th>





                </tr>
            </c:forEach>

            </tbody>

        </table>




        <%--分页--%>
        <div class="row">
            <div class="col-md-10 col-md-offset-1">
                <div class="zxf_pagediv"></div>
            </div>

        </div>
    </div>






</div>

<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <video src="" height="500" controls preload="metadata" id="10"></video>
        </div>
    </div>
</div>

<%--修改用户信息模态框--%>
<div id="updateUserDiag" class="modal fade" aria-labelledby="myModalLabel"  aria-hidden="true">
    <div class="form-wrap">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button class="close" data-dismiss="modal">
                        <span>&times;</span>
                    </button>
                </div>
                <div class="modal-title">
                    <h1 class="text-center">举报无效</h1>
                </div>
                <div>

                </div>


                <form class="form-group allow2" id="addForm2" name="form55"  novalidate >
                    <div class="modal-body" id="updateUserMsg">

                    </div>
                    <input type="hidden" id="57" value="">
                    <h1 class=\"text-center\"> 确认举报无效？</h1>

                    <div class="modal-footer">
                        <button class="btn btn-primary invalid" type="submit" id="updateUser">提交</button>

                        <button class="btn btn-danger" data-dismiss="modal">取消</button>
                    </div>

                </form>

            </div>
        </div>
    </div>
</div>
<%--修改用户模态框结束--%>


<%--删除用户模态框--%>
<div id="deleteUserById" class="modal fade" aria-labelledby="myModalLabel" >
    <div class="form-wrap">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button class="close" data-dismiss="modal">
                        <span>&times;</span>
                    </button>
                </div>
                <div class="modal-title">
                    <h1 class="text-center">举报有效并删除视频</h1>
                </div>



                <form class="form-group" id="form6" name="form6"
                      method="post">
                    <div class="modal-body" id="deleteUser" name="33">
                        <input type="hidden" id="58" value="">
                    </div>
                    <div class="modal-footer">
                        <button class="btn btn-primary deleteAbuseVideo" type="submit" id="tijiao2">提交
                        </button>
                        <button class="btn btn-danger" data-dismiss="modal">取消</button>
                    </div>
                </form>

            </div>
        </div>
    </div>
</div>
<%--删除用户模态框结束--%>




</body>


<script type="text/javascript">



    $(document).ready(function () {

        $(".zxf_pagediv").createPage({
//            pageNum: 10,//总页码
//            current: 1,//当前页
//            shownum: 10,//每页显示个数
            pageNum: ${pageInfo.getTotal()},//总页码
            current: ${pageInfo.getCurrentPage()},//当前页

            shownum: 8,//每页显示个数
            backfun: function (e) {
                $("#inp_hid_pn").attr("value", e.current);
                $("#form_search").submit();
            }
        });
    });
</script>


</html>
